<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html;charset=utf-8" isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>生成订单 - 当当网</title>
<link href="${pageContext.request.contextPath}/css/login.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/page_bottom.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/address.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
	$(function(){
		 
	})
</script>
</head>
<body>
	<%@include file="../common/head1.jsp"%>
	<div class="login_step">
		生成订单骤: 1.确认订单 ><span class="red_bold"> 2.填写送货地址</span> > 3.订单成功
	</div>
	<div class="fill_message">
		 
		 <form action="${pageContext.request.contextPath}/insertOrder.do" method="post">
			 <div class="address-wrap">
				<ul class="address-list">

					<c:forEach items="${addresses}" var="c">

					 <li class="selected">
						 <label class="addressInfo">
						 <c:if test="${c.selectedstate==1}">
							 <input type="radio" name="addressId" value="${c.aid}" checked="true"/>
						 </c:if>
						<c:if test="${c.selectedstate!=1}">
							<input type="radio" name="address"/>
						</c:if>

						<span class="user-address">
							<span >${c.address}</span>
							<span>（</span>
							<span>${c.name}</span>
							<span> 收）</span>
							<em>${c.mobile}</em>
						</span>
					</label>
				</li>
					</c:forEach>
				</ul>
			</div>
			
			<div class="login_in">
				<input
					id="btnClientRegister" class="button_1" name="submit" type="submit"
					value="下一步" />
			</div>
			
		</form>
	</div>
	<%@include file="../common/foot1.jsp"%>
</body>
</html>

